package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lvsidong on 2017/10/23.
 *
 * 车辆列表
 */

public class CarListDetailEntity implements Parcelable{
    public List<CarDetailEntity> carList;
    public int count;
    public int totalCount;

    public int pageNum;
    public int pageSize;
    public int size;
    public int pages;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<CarDetailEntity> getCarList() {
        return carList;
    }

    public void setCarList(List<CarDetailEntity> carList) {
        this.carList = carList;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public static Creator<CarListDetailEntity> getCREATOR() {
        return CREATOR;
    }

    public CarListDetailEntity() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.carList);
        dest.writeInt(this.count);
        dest.writeInt(this.totalCount);
        dest.writeInt(this.pageNum);
        dest.writeInt(this.pageSize);
        dest.writeInt(this.size);
        dest.writeInt(this.pages);
    }

    protected CarListDetailEntity(Parcel in) {
        this.carList = in.createTypedArrayList(CarDetailEntity.CREATOR);
        this.count = in.readInt();
        this.totalCount = in.readInt();
        this.pageNum = in.readInt();
        this.pageSize = in.readInt();
        this.size = in.readInt();
        this.pages = in.readInt();
    }

    public static final Creator<CarListDetailEntity> CREATOR = new Creator<CarListDetailEntity>() {
        @Override
        public CarListDetailEntity createFromParcel(Parcel source) {
            return new CarListDetailEntity(source);
        }

        @Override
        public CarListDetailEntity[] newArray(int size) {
            return new CarListDetailEntity[size];
        }
    };
}
